package com.design.factory.complex;


import com.design.factory.common.service.Pizza;

/**
 * @author zhengzihong
 * @version 1.0.0
 * @date 2018/9/13
 * @Description
 */
public abstract class PizzaStore {

    public Pizza orderPizza(String type){
        Pizza pizza = createPizza(type);
        pizza.prepare();
        pizza.bake();
        pizza.cut();
        pizza.box();
        return pizza;
    }
    public abstract Pizza createPizza(String type);


}

